package com.lynn.salary.util;

import java.util.ArrayList;
import java.util.List;

public class Page {
	private DataProvider dataProvider;
	private PageTable pageTable;
	private List<Operator> operators;

	public DataProvider getDataProvider() {
		return dataProvider;
	}

	public void setDataProvider(DataProvider dataProvider) {
		this.dataProvider = dataProvider;
	}

	public PageTable getPageTable() {
		return pageTable;
	}

	public void setPageTable(PageTable pageTable) {
		this.pageTable = pageTable;
	}

	public List<Operator> getOperators() {
		return operators;
	}

	public void setOperators(List<Operator> operators) {
		this.operators = operators;
	}
	
	public void addOperator(Operator o) {
		if(operators == null)operators = new ArrayList<Operator>();
		operators.add(o);
	}
}
